package fr.axgame.activities;

import android.app.ActionBar;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import fr.axgame.R;

public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		setContentView(R.layout.activity_main_layout);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
//		 Inflate the menu; this adds items to the action bar if it is present.
//		 getMenuInflater().inflate(R.menu.start, menu);

		ActionBar actionBar = getActionBar();
		actionBar.setCustomView(R.layout.navigation_layout);
		actionBar.setDisplayShowHomeEnabled(false);
		actionBar.setDisplayShowTitleEnabled(false);
		return true;
	}
	
	
	public void runArenaActivity(View v)
	{
		Intent arenaIntent = new Intent(MainActivity.this,ArenaActivity.class);
		startActivity(arenaIntent);
	}
	
	public void runCharacterActivity(View v)
	{
		Intent characterIntent = new Intent(MainActivity.this,CharacterActivity.class);
		startActivity(characterIntent);
	}
	
	public void runWorldActivity(View v)
	{
		Intent worldIntent = new Intent(MainActivity.this,WorldActivity.class);
		startActivity(worldIntent);
	}
}
